package com.ssy.lingxi.order.api.model.vo.request;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 订单支付会遇到
 * @author 万宁
 * @version 2.0.0
 * @date 2021-08-19
 */
public class OrderPayCallbackFeignVO implements Serializable {
    private static final long serialVersionUID = 6501433815942065556L;

    /**
     * 订单交易号
     */
    @NotBlank(message = "交易号不能为空")
    private String tradeNo;

    /**
     * 附加信息
     */
    @NotBlank(message = "附加信息不能为空")
    private String attach;

    /**
     * 是否支付成功
     */
    @NotNull(message = "是否支付成功不能为空")
    private Boolean paySuccess;

    public String getTradeNo() {
        return tradeNo;
    }

    public void setTradeNo(String tradeNo) {
        this.tradeNo = tradeNo;
    }

    public String getAttach() {
        return attach;
    }

    public void setAttach(String attach) {
        this.attach = attach;
    }

    public Boolean getPaySuccess() {
        return paySuccess;
    }

    public void setPaySuccess(Boolean paySuccess) {
        this.paySuccess = paySuccess;
    }
}
